# from modelscope.pipelines import pipeline
# word_segmentation = pipeline('word-segmentation',model='damo/nlp_structbert_word-segmentation_chinese-base')
# result = word_segmentation('今天天气不错，适合出去游玩')
# # {'output': '今天 天气 不错 ， 适合 出去 游玩'}
# print(result)

# import cv2
# from modelscope.pipelines import pipeline
#
# portrait_matting = pipeline('portrait-matting')
# result = portrait_matting('https://modelscope.oss-cn-beijing.aliyuncs.com/test/images/image_matting.png')
# cv2.imwrite('result.png', result['output_img'])
